package com.guigu.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Orders {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //订单流水号
    private String pId;
    //用户id
    private Integer uId;
    //商户id
    private Integer commId;
    //退货人姓名
    private String name;
    //提货人电话
    private String phone;
    //总价格
    private Double sumPrice;
    //订单创建时间
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date orderDate;

    //订单付款时间
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date paymentDate;

    //订单商户确认收货时间
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date harvestDate;

    //订单成交时间
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date clinchDate;
    //订单状态
    private String orderState;
    //货物状态
    private String goodsState;

    //是否评价 c-1：待评价  c-2:已评价
    private String isEvaluate;

    //是否结算过工资
    //0:未结算
    //1:结算过工资
    private Integer isSettleAccounts;

    //删除状态
    private Integer isDelete;
    //订单详情列表
    @TableField(exist = false)
    private List<OrdersParticulars> ordersDetails;
    //购物车信息
    @TableField(exist = false)
    private List<Cart> carts;
    //商户对象信息
    @TableField(exist = false)
    private  Users commUser;
    @TableField(exist = false)
    private List<Orders> ordersList;

    //查询用户
    @TableField(exist = false)
    private Users users;

    //小于xx时间
    @TableField(exist = false)
    private String clinchDateStr;
}

